package entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="questionario")
public class QuestionarioENT  implements Serializable{
/*------------------------------------------------------------------------------------*/	
	private static final long serialVersionUID = -808613820685994431L;
	@Id
	@GeneratedValue
	private int id;
	
	@Column(name="id_questao",nullable = false)
	private int idQuestao;
	
	@Column(name="resposta",nullable = false)	
	private int resposta;
	
	@Column(name="data_alteracao",nullable = false)
	@Temporal(TemporalType.TIMESTAMP)		
	private Date dtAlteracao;	
	
/*------------------------------------------------------------------------------------*/

	public int getId() {
		return id;
	}

	public int getIdQuestao() {
		return idQuestao;
	}

	public int getResposta() {
		return resposta;
	}

	public Date getDtAlteracao() {
		return dtAlteracao;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setIdQuestao(int idQuestao) {
		this.idQuestao = idQuestao;
	}

	public void setResposta(int resposta) {
		this.resposta = resposta;
	}

	public void setDtAlteracao(Date dtAlteracao) {
		this.dtAlteracao = dtAlteracao;
	}

	public QuestionarioENT() {
		super();
	}

	
}
